
    /**  
    * @Title: LogAsyncServiceImpl.java
    * @Package com.efast.cafe.log.service.impl
    * @Description: TODO(用一句话描述该文件做什么)
    * @author Administrator
    * @date 2018年8月29日
    * @version V1.0  
    */
    
package com.efast.cafe.commponent.log.service.impl;


import org.springframework.stereotype.Service;

import com.efast.cafe.commponent.log.entity.BusLogInfo;
import com.efast.cafe.commponent.log.service.LogAsyncService;
import com.efast.cafe.commponent.log.service.LogServiceFactory;
import com.efast.cafe.commponent.log.service.LogStorageService;



/**
    * @ClassName: LogAsyncServiceImpl
    * @Description: TODO(这里用一句话描述这个类的作用)
    * @author Administrator
    * @date 2018年8月29日
    *
    */
@Service("logAsyncService")
public class LogAsyncServiceImpl implements LogAsyncService {

	
	
	
	/* (非 Javadoc)
	* 
	* 
	* @param jsonMessage
	* @see com.efast.cafe.log.service.LogAsyncService#sendLog(java.lang.String)
	*/
	public void sendLog(BusLogInfo logInfoBean) {
		try {
			LogStorageService service = LogServiceFactory.getService();
			service.saveLog(logInfoBean);
		} catch (Exception e) {
			throw new RuntimeException("日志入库失败：" + e.getMessage());
        }
	}
	

}
